package ru.sgu.diploma.practic.domain.model;

/**
 * User: datmakin
 * Date: 13.03.11
 * Email: atmakin.dv@gmail.com
 */
public class Point {
    private Integer x;
    private Integer y;

    public Point() {}
    public Point(Integer x, Integer y) {
        this.x = x;
        this.y = y;
    }

    public Point(Double x, Double y) {
        this.x = new Long(Math.round(x*1000)).intValue();
        this.y = new Long(Math.round(y*1000)).intValue();
    }

    public Integer getX() {
        return x;
    }

    public void setX(Integer x) {
        this.x = x;
    }

    public Integer getY() {
        return y;
    }

    public void setY(Integer y) {
        this.y = y;
    }
}
